﻿using AutoMapper;
using B.S.BaseData.Domain.Entities;
using B.S.BaseData.Write.API.Command.ApplyCommand;
using B.S.BaseData.Write.API.Command.MenuCommand;
using B.S.BaseData.Write.API.Command.RoleCommand;
using B.S.BaseData.Write.API.Command.UserCommand;

namespace B.S.BaseData.Write.API
{
    public class MappingProfile:Profile
    {
        public MappingProfile() 
        {
            CreateMap<AddUserCommand,User>().ReverseMap();
            CreateMap<UpdUserCommand, User>().ReverseMap();
            CreateMap<CreateRoleCommand, Role>().ReverseMap();
            CreateMap<UpdateRoleCommand, Role>().ReverseMap();
            CreateMap<MenuManagement, AddMenuCommand>().ReverseMap();
            CreateMap<MenuManagement, DelMenuCommand>().ReverseMap();
            CreateMap<MenuManagement, UpdateMenuCommand>().ReverseMap();
            CreateMap<Apply, UpdApplyCommand>().ReverseMap();
        }
    }
}
